using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntitySysCustomersCreateExtend
{
		public static SysCustomers ToCreateEntity(this RequestSysCustomersDto dto)
		{
			return new SysCustomers
			{
				CAccount = dto.account,
				CEmail = dto.email,
				CPhoneNumber = dto.phoneNumber,
				CLastLoginTime = dto.lastLoginTime,
				CAvatar = dto.avatar,
				CGender = dto.gender,
				CBirthday = dto.birthday,
				CAddress = dto.address,
				CIpAddress = dto.ipAddress,
				CPoints = dto.points,
				CVip = dto.vip,
				CStatus = dto.status,
			};
		}
	}
}
